package com.bawei.movie.model

import com.bawei.movie.api.MovieServerApi
import com.bawei.movie.entity.MovieTypeEntity
import com.bawei.network.BaseResponse
import javax.inject.Inject

/**
 * Author: Jason Zhang
 * Date: 2024/3/5
 * Desc:
 */
class MovieRepository @Inject constructor(private val apiServerApi: MovieServerApi){


    suspend fun getMutilType(): BaseResponse<List<MovieTypeEntity>> {
        return apiServerApi.getMutilType()
    }

    suspend fun getMutilTypeById(pid: Int): BaseResponse<List<MovieTypeEntity>>{
        return apiServerApi.getMutilTypeByPid(pid)
    }



}